package com.example.chenjun.myapplication.net.retrofit.api;

import java.util.Map;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.HeaderMap;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

public interface PostFileService {
    /**
     * 带参数多文件上传
     * @param fieldes   form参数
     * @param bodys     文件参数
     * @return  Call对象
     */
    @Multipart
    @POST
    Call<ResponseBody> postFile(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> fieldes, @PartMap Map<String, RequestBody> bodys);
}
